@extends('app')

@section('content')
<ul class="nav nav-tabs">
    <li class="active"><a href="{{ url('/admin/enterprise/auth_type')}}">认证类别</a></li>
    <li><a href="{{ url('/admin/enterprise/auth_type/create') }}">添加</a></li>
</ul>

<!-- 预览icon -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel" style="color:#2ECC71;">认证图标</h4>
      </div>
      <div class="modal-body" id="modal-body">

      </div>
    </div>
  </div>
</div>

<div class="panel panel-default mt20">
    <div class="table-responsive panel-body">
        <table class="table table-hover">
          <thead>
            <tr>
              <th>编号</th>
              <th>认证类别</th>
              <th>简介</th>
              <th>图标</th>
              <th>操作</th>
            </tr>
          </thead>
          <tbody>
          @foreach($auths as $res)
            <tr id="news_{{ $res->auth_id }}">
              <td>{{ $res->auth_id }}</td>
              <td>
                <a href="{{ url('/admin/enterprise/auth_type/'.$res->auth_id.'/edit') }}">
                  {{ $res->name }}
                </a>
              </td>
              <td>
                <span style="color:#9B59B6;cursor:pointer;" onclick="viewInfo('/admin/enterprise/auth_type/viewInfo','auth_id',{{ $res->auth_id }},'{{ csrf_token() }}', '认证类别简介');">
                  {!! $res->description !!}
                </span>
              </td>
              <td>
                  {{-- {{ $res->icon }} --}}
                  <span class="glyphicon glyphicon-eye-open " style="color: #2ECC71;cursor: pointer;" onclick="view('/admin/enterprise/auth_type/view','auth_id',{{ $res->auth_id }}, '{{ csrf_token() }}', '认证图标')">
                  </span>
              </td>
              <td>
                <a href="{{ url('/admin/enterprise/auth_type/'.$res->auth_id.'/edit') }}"><i class="glyphicon glyphicon-edit"></i></a>&nbsp;&nbsp;&nbsp;&nbsp;
                <a href="javascript:void(0);" onclick="delete_one('/admin/enterprise/auth_type/{{$res->auth_id}}','{{$res->auth_id}}','{{ csrf_token() }}','auth_id')"><i class="glyphicon glyphicon-remove-sign"></i></a>&nbsp;&nbsp;&nbsp;&nbsp;
              </td>
            </tr>
          @endforeach
          </tbody>
        </table>
    </div>
</div>
<div>{!! $auths->render() !!} </div>
@endsection
